﻿using Basic.FormRemoteModel.FormView.Model;
using Basic.FormRemoteModel.PageLayout.Model;
using SqlSugar;

namespace Basic.FormModel.DB
{
    [SugarTable("FormView")]
    public class DBFormView
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id
        {
            get;
            set;
        }
        public long FormId
        {
            get;
            set;
        }

        [SugarColumn(IsJson = true)]
        public FormViewTable ViewTable
        {
            get;
            set;
        }

        /// <summary>
        /// 筛选条件
        /// </summary>
        [SugarColumn(IsJson = true)]
        public PageFilterParam[] WhereList { get; set; }


        [SugarColumn(IsJson = true)]
        public ViewHaving HavingSet { get; set; }

        /// <summary>
        /// 分组列
        /// </summary>
        [SugarColumn(IsJson = true)]
        public long[] GroupBy { get; set; }

        public bool IsGenerate
        {
            get;
            set;
        }
    }
}
